-- GENERATED SPELL FOR [Wildthorn Stalker] --


function spell0_3819(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3819', 632, 1)
end

function spell1_3819(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(12023,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3819', 5297, 1)
end

function Sorts_3819(pUnit, Event)
local choix_sorts_3819 = math.random(0, 1)
if choix_sorts_3819 == 0 then
pUnit:RegisterEvent('spell0_3819', 1, 1)
end
if choix_sorts_3819 == 1 then
pUnit:RegisterEvent('spell1_3819', 1, 1)
end
end

function mob3819_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3819', math.random(1500, 3000), 1)
end

function mob3819_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3819_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3819_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3819, 1, 'mob3819_Action')
RegisterUnitEvent(3819, 2, 'mob3819_Leave')
RegisterUnitEvent(3819, 3, 'mob3819_Kill')
RegisterUnitEvent(3819, 4, 'mob3819_Die')
